import { axios } from '@/utils/request'

const api = {
  getList: '/saas-integral-cat/list',
  changeStatus: '/saas-integral-cat/change-status',
  changeName: '/saas-integral-cat/change-name',
  deleteCat: '/saas-integral-cat/delete',
  addCat: '/saas-integral-cat/add'
}

export default api

export function getList (parameter) {
  return axios({
    url: api.getList,
    method: 'get',
    params: parameter
  })
}

export function changeStatus (parameter) {
  return axios({
    url: api.changeStatus,
    method: 'post',
    data: parameter
  })
}

export function changeName (parameter) {
  return axios({
    url: api.changeName,
    method: 'post',
    data: parameter
  })
}

export function deleteCat (parameter) {
  return axios({
    url: api.deleteCat,
    method: 'post',
    data: parameter
  })
}

export function addCat (parameter) {
  return axios({
    url: api.addCat,
    method: 'post',
    data: parameter
  })
}
